<?php
namespace app\index\controller;

class About extends Common
{
    public function index()
    {

        $abouts=db('about')->field('a.id,a.title')->alias('a')->order('a.sort desc')->paginate(10);
        $this->assign('abouts',$abouts);
        $single=db('about')->where(array('id'=>input('id')))->find();
        $this->assign('single',$single);
        return view();
    }
}
